import request from '@/utils/request';

// get 修改素材分类信息
export async function fakeUpdateMaterCategory(data) {
  return request('/materialCategory/updateMaterialCategory', {
    method: 'post',
    data,
  });
}

// get 新增素材分类
export async function fakeInsertMaterialCategory(data) {
  return request('/materialCategory/insertMaterialCategory', {
    method: 'post',
    data,
  });
}

// get 删除素材分类
export async function fakeDeleteMaterialCategory(data) {
  return request('/materialCategory/deleteMaterialCategory', {
    method: 'post',
    data,
  });
}
//获取企业素材分类列表
export async function fetchListMaterialCategory(params) {
  return request('/materialCategory/listMaterialCategory', {
    params,
  });
}

// get 修改素材分类信息
export async function fakeUpdateMater(data) {
  return request('/material/updateMaterial', {
    method: 'post',
    data,
  });
}

// get 新增素材分类
export async function fakeInsertMaterial(data) {
  return request('/material/insertMaterial', {
    method: 'post',
    data,
  });
}

// get 更改素材分类状态
export async function fakeChangeMaterialStatus(data) {
  return request('/material/changeMaterialStatus', {
    method: 'post',
    data,
  });
}
//获取素材列表
export async function fetchListMaterial(params) {
  return request('/material/listMaterial', {
    params,
  });
}

//获取素材列表
export async function fetchGetMaterialDetail(params) {
  return request('/material/getMaterialDetail', {
    params,
  });
}

//获取商品运营信息
export async function fetchGoodsMarketingInfo(params) {
  return request('/goods/getGoodsMarketingInfo', {
    params,
  });
}

// post 保存商品运营信息
export async function fakeSaveGoodsMarketingInfo(data) {
  return request('/goods/saveGoodsMarketingInfo', {
    method: 'post',
    data,
  });
}

// get 添加采集
export async function fakeInformationCollection(data) {
  return request('/marketing/informationCollection/insertInformationCollection', {
    method: 'post',
    data,
  });
}
//获取采集列表
export async function fetchInformationCollection(params) {
  return request('/marketing/informationCollection/listInformationCollection', {
    params,
  });
}

//获取采集列表
export async function fetchInformationCollectionDetail(params) {
  return request('/marketing/informationCollection/getInformationCollectionDetail', {
    params,
  });
}

// get 修改采集表单
export async function fakeUpdateInformationCollection(data) {
  return request('/marketing/informationCollection/updateInformationCollection', {
    method: 'post',
    data,
  });
}
// get 添加采集
export async function fakeDeleteInformationCollection(data) {
  return request('/marketing/informationCollection/deleteInformationCollection', {
    method: 'post',
    data,
  });
}
// post 启用采集表单
export async function fakeEnableInformation(data) {
  return request('/marketing/informationCollection/enableInformationCollection', {
    method: 'post',
    data,
  });
}

// post 禁用采集表单
export async function fakeDisableInformation(data) {
  return request('/marketing/informationCollection/disableInformationCollection', {
    method: 'post',
    data,
  });
}
//分页获取直播
export async function fetchDirectLive(params) {
  return request('/goods/directLive/listDirectLive', {
    params,
  });
}

//获取直播详情
export async function fetchDirectLiveDetail(params) {
  return request('/goods/directLive/getDirectLiveDetail', {
    params,
  });
}
// 添加直播
export async function fakeInsertDirectLive(data) {
  return request('/goods/directLive/saveDirectLive', {
    method: 'post',
    data,
  });
}

// 上架单场直播商品
export async function fakeUpDirectLiveGoods(data) {
  return request('/goods/directLive/upDirectLiveGoods', {
    method: 'post',
    data,
  });
}
// 下架单场直播商品
export async function fakeDownDirectLiveGoods(data) {
  return request('/goods/directLive/downDirectLiveGoods', {
    method: 'post',
    data,
  });
}
// 删除直播
export async function fakeDeleteDirectLive(data) {
  return request('/goods/directLive/deleteDirectLiveGoods', {
    method: 'post',
    data,
  });
}

// 上架点播商品
export async function fakeVideoCourseGoods(data) {
  return request('/goods/videoCourse/upVideoCourseGoods', {
    method: 'post',
    data,
  });
}

// 下架点播商品
export async function fakeVideoDownVideoCourseGoods(data) {
  return request('/goods/videoCourse/downVideoCourseGoods', {
    method: 'post',
    data,
  });
}

// 保存点播商品
export async function fakeSaveVideoCourse(data) {
  return request('/goods/videoCourse/saveVideoCourse', {
    method: 'post',
    data,
  });
}

// 删除点播商品
export async function fakedDeleteVideoCourseGoods(data) {
  return request('/goods/videoCourse/deleteVideoCourseGoods', {
    method: 'post',
    data,
  });
}

//分页获取点播
export async function fetchListVideoCourse(params) {
  return request('/goods/videoCourse/listVideoCourse', {
    params,
  });
}

//获取点播详情
export async function fetchVideoCourseDetail(params) {
  return request('/goods/videoCourse/getVideoCourseDetail', {
    params,
  });
}

// 上架点播视频
export async function fakeUpVideoGoods(data) {
  return request('/goods/video/upVideoGoods', {
    method: 'post',
    data,
  });
}

// 下架点播视频
export async function fakeDownVideoGoods(data) {
  return request('/goods/video/downVideoGoods', {
    method: 'post',
    data,
  });
}

// 保存点播视频
export async function fakeSaveVideo(data) {
  return request('/goods/video/saveVideo', {
    method: 'post',
    data,
  });
}

// 删除点播商品
export async function fakedDeleteVideo(data) {
  return request('/goods/video/deleteVideoGoods', {
    method: 'post',
    data,
  });
}

//分页获取点播视频
export async function fetchListVideo(params) {
  return request('/goods/video/listVideo', {
    params,
  });
}

//获取点播详情
export async function fetchVideoDetail(params) {
  return request('/goods/video/getVideoDetail', {
    params,
  });
}

//获取商品关联的内容商品
export async function fetchGoodsContent(params) {
  return request('/goods/listGoodsContent', {
    params,
  });
}

// 删除商品章节
export async function fakeRemoveGoodsSection(data) {
  return request('/goods/removeGoodsSection', {
    method: 'post',
    data,
  });
}

// 保存商品章节
export async function fakeSaveGoodsSection(data) {
  return request('/goods/saveGoodsSection', {
    method: 'post',
    data,
  });
}

// 保存章节关联内容
export async function fakeSaveGoodsContent(data) {
  return request('/goods/saveGoodsContent', {
    method: 'post',
    data,
  });
}

// 删除章节关联内容
export async function fakeRemoveGoodsContent(data) {
  return request('/goods/removeGoodsContent', {
    method: 'post',
    data,
  });
}

//分页获取直播
export async function fetchListLive(params) {
  return request('/goods/live/listLive', {
    params,
  });
}

//获取直播详情
export async function fetchLiveDetail(params) {
  return request('/goods/live/getLiveDetail', {
    params,
  });
}

// 删除直播
export async function fakeDeleteLiveGoods(data) {
  return request('/goods/live/deleteLiveGoods', {
    method: 'post',
    data,
  });
}
// 下架单场直播商品
export async function fakeDownLiveGoods(data) {
  return request('/goods/live/downLiveGoods', {
    method: 'post',
    data,
  });
}

//保存单场直播
export async function fakeSaveLive(data) {
  return request('/goods/live/saveLive', {
    method: 'post',
    data,
  });
}

//保存单场直播
export async function fakeUpLiveGoods(data) {
  return request('/goods/live/upLiveGoods', {
    method: 'post',
    data,
  });
}

//分页获取直播课程
export async function fetchListLiveCourse(params) {
  return request('/goods/liveCourse/listLiveCourse', {
    params,
  });
}

//获取直播课程详情
export async function fetchLiveCourseDetail(params) {
  return request('/goods/liveCourse/getLiveCourseDetail', {
    params,
  });
}

// 删除直播课程
export async function fakeDeleteLiveCourseGoods(data) {
  return request('/goods/liveCourse/deleteLiveCourseGoods', {
    method: 'post',
    data,
  });
}
// 下架直播课程
export async function fakeDownLiveCourseGoods(data) {
  return request('/goods/liveCourse/downLiveCourseGoods', {
    method: 'post',
    data,
  });
}

//保存直播课程
export async function fakeSaveLiveCourse(data) {
  return request('/goods/liveCourse/saveLiveCourse', {
    method: 'post',
    data,
  });
}

//上架直播课程
export async function fakeUpCourseGoods(data) {
  return request('/goods/liveCourse/upLiveCourseGoods', {
    method: 'post',
    data,
  });
}

//排序
export async function fakeDropMaterialCategory(data) {
  return request('/materialCategory/dropMaterialCategory', {
    method: 'post',
    data,
  });
}

//分页获取获取秒杀列表
export async function fetchListGoodsSecKill(params) {
  return request('/goods/listGoodsSecKill', {
    params,
  });
}

//获取秒杀详情
export async function fetchGoodsSecKillDetail(params) {
  return request('/goods/getGoodsSecKillDetail', {
    params,
  });
}

//保存商品秒杀信息
export async function fakeGoodsSecKill(data) {
  return request('/goods/saveGoodsSecKill', {
    method: 'post',
    data,
  });
}

//删除商品秒杀信息
export async function fakeDeleteGoodsSecKill(data) {
  return request('/goods/deleteGoodsSecKill', {
    method: 'post',
    data,
  });
}

//获取抽奖详情
export async function fetchLotteryDetail(params) {
  return request('/goods/lottery/getLotteryDetail', {
    params,
  });
}

//禁用商品抽奖
export async function fakeDisableGoodsLottery(data) {
  return request('/goods/lottery/disableGoodsLottery', {
    method: 'post',
    data,
  });
}

//启用商品抽奖
export async function fakeEnableGoodsLottery(data) {
  return request('/goods/lottery/enableGoodsLottery', {
    method: 'post',
    data,
  });
}

//保存商品抽奖信息
export async function fakeSaveGoodsLottery(data) {
  return request('/goods/lottery/saveGoodsLottery', {
    method: 'post',
    data,
  });
}

//直播间设置-互动设置接口
export async function fetchDirectLiveInteractionInfo(params) {
  return request('/goods/directLive/getDirectLiveInteractionInfo', {
    params,
  });
}

//保存商品带货信息
export async function fakeSaveGoodsCommerce(data) {
  return request('/goods/commerce/saveGoodsCommerce', {
    method: 'post',
    data,
  });
}

//启用商品带货
export async function fakeEnableGoodsCommerce(data) {
  return request('/goods/commerce/enableGoodsCommerce', {
    method: 'post',
    data,
  });
}

//启用商品带货里面的商品
export async function fakeEnableGoodsCommerceGoods(data) {
  return request('/goods/commerce/enableGoodsCommerceGoods', {
    method: 'post',
    data,
  });
}

//禁用商品带货
export async function fakeDisableGoodsCommerce(data) {
  return request('/goods/commerce/disableGoodsCommerce', {
    method: 'post',
    data,
  });
}

//禁用商品带货里面的商品
export async function fakeDisableGoodsCommerceGoods(data) {
  return request('/goods/commerce/disableGoodsCommerceGoods', {
    method: 'post',
    data,
  });
}

//删除商品带货里面的商品
export async function fakeDeleteGoodsCommerceGoods(data) {
  return request('/goods/commerce/deleteGoodsCommerceGoods', {
    method: 'post',
    data,
  });
}

//带货商品排序
export async function fakeSortGoodsCommerce(data) {
  return request('/goods/commerce/sortGoodsCommerce', {
    method: 'post',
    data,
  });
}
//排序目录商品
export async function fakeGoodsContent(data) {
  return request('/goods/sortGoodsContent', {
    method: 'post',
    data,
  });
}

//直播间设置-互动设置接口
export async function fetchPushAndLiveUrl(params) {
  return request('/goods/getPushAndLiveUrl', {
    params,
  });
}

//获取获取在线人数趋势数据
export async function fetchOnlineUserTrendData(params) {
  return request('/goods/data/getOnlineUserTrendData', {
    params,
  });
}

//获取直播数据
export async function fetchLiveData(params) {
  return request('/goods/data/getLiveData', {
    params,
  });
}

//管理后台获取中奖用户
export async function fetchGoodsLotteryPrizeUser(params) {
  return request('/goods/lottery/listGoodsLotteryPrizeUser', {
    params,
  });
}
//管理后台获取中奖用户
export async function fetchUserInformationCollection(params) {
  return request('/marketing/informationCollection/listUserInformationCollection', {
    params,
  });
}

//获取分享信息
export async function fetchGetShareInfo(params) {
  return request('/share/getShareInfo', {
    params,
  });
}

//分页获取面授
export async function fetchFaceToFace(params) {
  return request('/goods/faceToFace/listFaceToFace', {
    params,
  });
}

//获取面授详情
export async function fetchFaceToFaceDetail(params) {
  return request('/goods/faceToFace/getFaceToFaceDetail', {
    params,
  });
}

//保存面授
export async function fakeSaveFaceToFace(data) {
  return request('/goods/faceToFace/saveFaceToFace', {
    method: 'post',
    data,
  });
}

//保存面授
export async function fakeUpFaceToFaceGoods(data) {
  return request('/goods/faceToFace/upFaceToFaceGoods', {
    method: 'post',
    data,
  });
}

//保存面授
export async function fakeDeleteFaceToFaceGoods(data) {
  return request('/goods/faceToFace/deleteFaceToFaceGoods', {
    method: 'post',
    data,
  });
}

//下架面授商品
export async function fakeDownFaceToFaceGoods(data) {
  return request('/goods/faceToFace/downFaceToFaceGoods', {
    method: 'post',
    data,
  });
}

//修改商品售价
export async function fakeGoodsPrice(data) {
  return request('/goods/editGoodsPrice', {
    method: 'post',
    data,
  });
}

//获取商品权限
export async function fetchGoodsAuth(params) {
  return request('/goods/auth/getGoodsAuth', {
    params,
  });
}

//保存商品权限
export async function fakeGoodsAuth(data) {
  return request('/goods/auth/saveGoodsAuth', {
    method: 'post',
    data,
  });
}

//删除商品权限
export async function fakeDeleteGoodsAuth(data) {
  return request('/goods/auth/deleteGoodsAuth', {
    method: 'post',
    data,
  });
}

//获取商品白名单
export async function fetchGoodsWhiteList(params) {
  return request('/goods/auth/listGoodsWhiteList', {
    params,
  });
}

//删除白名单
export async function fakeDeleteGoodsWhitelist(data) {
  return request('/goods/auth/deleteGoodsWhitelist', {
    method: 'post',
    data,
  });
}

//保存白名单
export async function fakeSaveGoodsWhitelist(data) {
  return request('/goods/auth/saveGoodsWhitelist', {
    method: 'post',
    data,
  });
}

//根据商品Id查询商品
export async function fetchGoodsByIds(params) {
  return request('/goods/listGoodsByIds', {
    params,
  });
}

//导出表单填写记录
export async function fakeExportUserInformationCollection(data) {
  return request('/marketing/informationCollection/exportUserInformationCollection', {
    method: 'post',
    data,
  });
}
//直播间设置-互动设置接口
export async function fetchLiveInteractionInfo(params) {
  return request('/goods/live/getLiveInteractionInfo', {
    params,
  });
}


//获取服务商品
export async function fetchListService(params) {
  return request('/goods/service/listService', {
    params,
  });
}



//获取服务详情
export async function fetchServiceDetail(params) {
  return request('/goods/service/getServiceDetail', {
    params,
  });
}

//上架服务
export async function fakeUpServiceGoods(data) {
  return request('/goods/service/upServiceGoods', {
    method: 'post',
    data,
  });
}

//下架服务商品
export async function fakeDownServiceGoods(data) {
  return request('/goods/service/downServiceGoods', {
    method: 'post',
    data,
  });
}


//保存服务商品
export async function fakeSaveService(data) {
  return request('/goods/service/saveService', {
    method: 'post',
    data,
  });
}
//删除服务
export async function fakeDeleteServiceGoods(data) {
  return request('/goods/service/deleteServiceGoods', {
    method: 'post',
    data,
  });
}
